import { createRouter, createWebHashHistory } from 'vue-router'
import ReservationInfo from "@/views/ReservationInfo.vue";
import OrderInfo from "@/views/OrderInfo.vue";
import ConsumeInfo from "@/views/ConsumeInfo.vue";
import RoomManagement from "@/views/RoomManagement.vue";
import DishManagement from "@/views/DishManagement.vue";
import UserManagement from "@/views/UserManagement.vue";
import AccountManagement from "@/views/AccountManagement.vue";


const routes = [
  {
    path:'/menu/info',
    name:'info',
    component: ReservationInfo
  },
  {
    path:'/menu/order',
    name:'order',
    component: OrderInfo
  },
  {
    path:'/menu/consume',
    name:'consume',
    component: ConsumeInfo
  },
  {
    path:'/menu/room',
    name:'roomManagement',
    component: RoomManagement
  },
  {
    path:'/menu/dish',
    name:'dishManagement',
    component: DishManagement
  },
  {
    path:'/menu/user',
    name:'userManagement',
    component: UserManagement
  },
  {
    path:'/menu/consume',
    name:'ConsumeInfo',
    component: ConsumeInfo
  },
  {
    path:'/menu/account',
    name:'accountInfo',
    component: AccountManagement
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
